import { lazy } from 'react';
import { WapHome, StopCircle, Bookmark ,Chat} from '@react-vant/icons';
export let mainRoute = [
    {
        path:'/Home/Index',
        element:lazy(()=>import('../Page/Home/Index')),
        txt:'工作台',
        icon:WapHome
    },
    {
        path:'/Home/Classify',
        element:lazy(()=>import('../Page/Home/Classify')),
        txt:'分类管理',
        icon:StopCircle
    },
    {
        path:'/Home/BiaoQ',
        element:lazy(()=>import('../Page/Home/BiaoQ')),
        txt:'标签管理',
        icon:Bookmark
    },
    {
        path:'/Home/PingL',
        element:lazy(()=>import('../Page/Home/PingL')),
        txt:'评论管理',
        icon:Chat
    },
]

const routes = [
    {
        path:'/Home',
        element:lazy(()=>import('../Page/Home')),
        children:mainRoute
    },
    {
        path:'*',
        element:lazy(()=>import('../Page/Erroy404')),
    },
    {
        path:'/',
        to:'/Home/Index',
    }
]

export default routes;